package com.baichang.taoshunda.entity.em;

/**
 * Created by ${wushenglu} on 2018/1/30.
 */
public enum UserRechargeHistoryType {
    手机话费充值(1), 油卡充值(2), 水电煤充值(3);

    private Integer code;

    private UserRechargeHistoryType(Integer code) {
        this.code = code;
    }

    public static UserRechargeHistoryType valueOfCode(Integer code) {
        UserRechargeHistoryType[] states = UserRechargeHistoryType.values();
        for (UserRechargeHistoryType state : states) {
            if (state.getCode().equals(code)) {
                return state;
            }
        }
        return null;
    }

    public Integer getCode() {
        return this.code;
    }

    @Override
    public String toString() {
        return String.valueOf(this.code);
    }
}
